package com.guoxin.factory.absfactory.pizzastore.pizza;

/**
 * @author Administrator
 */
public abstract class Pizza {

    private String name;

    public Pizza(String name) {
        this.name = name;
    }

    protected abstract void prepare();

    private void bake() {
        System.out.println(name + ",baking");
    }

    private void cut() {
        System.out.println(name + ",cutting");
    }

    private void box() {
        System.out.println(name + ",boxing");
    }
    
    public void show(){
    	prepare();
    	bake();
    	cut();
    	box();
    }
}
